<template>
  <!-- 视频 长列表 -->
  <div class="slideVideo">
    <div class="title">热销产品</div>
    <div class="slide">
      <!-- 160px要根据页面缩放动态改变 插件width默认px要改-->
      <div
        class="slide-item"
        v-for="(item, index) in 4"
        :key="index"
        @click="goVideo"
      >
        <div class="video-item">
          <div class="video-top">
            <img src="../../assets/矩形 2.png" alt="" />
            <div class="playcount"><span></span>112225次</div>
          </div>
          <div class="text">
            <div class="titel ele">私密产品产品名称私密产品数字不超</div>
            <div class="info">343人已购买</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.slideVideo {
  padding: 16px;
  padding-right: 0;

    .title {
      width: 64px;
      height: 26px;
      font-size: 16px;
      font-weight: bold;
      color: #1f0d44;
      line-height: 26px;
      margin-bottom: 12px;
    }
    .slide {
      overflow-x: scroll;
      overflow-y: hidden;
      white-space: nowrap;
      .slide::-webkit-scrollbar {
        display: none; //隐藏滚动条
      }
      .slide-item {
        width: 160px;
        height: 190px;
        margin-right: 12px;
        display: inline-block;
        background: #ffffff;
        white-space: nowrap;
        box-shadow: 0px 4px 12px 0px rgba(31, 13, 68, 0.04);
        border-radius: 6px;
        .video-top {
          width: 160px;
          height: 123px;
          border-radius: 6px 6px 0px 0px;
          background-color: #ff3040;
          position: relative;
          img {
            width: 100%;
            height: 100%;
          }
          .playcount {
            position: absolute;
            bottom: 5px;
            left: 10px;
            font-size: 12px;
            font-weight: 400;
            color: #ffffff;
            span {
              margin-right: 4px;
              display: inline-block;
              width: 14px;
              height: 14px;
              vertical-align: middle;
              background: #d8d8d8;
            }
          }
        }
        .text {
          font-family: PingFangSC-Semibold, PingFang SC;
        }
        .titel {
          margin: 10px;
          width: 140px;
          height: 20px;
          font-size: 14px;
          font-weight: 600;
          color: #333333;
          line-height: 20px;
        }
        .info {
          margin-left: 10px;
          font-size: 12px;
          font-weight: 400;
          color: #999999;
          line-height: 17px;
        }
      }
    }
  }
}
</style>
